#{extends 'admin.html' /}
#{set title:'Administration : Type de Formation'/}
#{if flash.error}
    <h4 class="alert_error">${flash.error}</h4>
#{/if}
#{if flash.success}
    <h4 class="alert_success">${flash.success}</h4>
#{/if}
<article class="module width_3_quarter">
    <header><h3 class="tabs_involved">Administration des type de formation</h3>
        <ul class="tabs">
            <li><a href="@{FormationTypes.create}">Ajouter un type de formation</a></li>
            <li><a href="@{Admin.index}">Accueil de l'Administration</a></li>
        </ul>
    </header>
    <div class="tab_container">
        <div id="tab1" class="tab_content">
            <table class="tablesorter" cellspacing="0">
                <thead>
                    <tr>
                        <th><!-- actions --></th>
                        <th>Nom</th>
                        <th>Code</th>
                    </tr>
                </thead>
				<tbody>
	#{list items:entities, as:'entity'}
                    <tr>
                        <td>
                            <a href="@{FormationTypes.show(entity.id)}"><input type="image" src="@{'/public/images/admin/icn_view_users.png'}" title="Visualiser"></a>&nbsp;
                            <a href="@{FormationTypes.edit(entity.id)}"><input type="image" src="@{'/public/images/admin/icn_edit.png'}" title="Editer"></a>&nbsp;
                            <a href="@{FormationTypes.delete(entity.id)}" onclick="if (!confirm('Etes vous sur de vouloir supprimer cet utilisateur ?')) return false;"><input type="image" src="@{'/public/images/admin/icn_trash.png'}" title="Supprimer"></a>
                        </td>
                        <td>${entity.name}</td>
                        <td>${entity.code}</td>
                    </tr>
	#{/list}
                </tbody>
            </table>
        </div>
    </div>
</article>